<template>
  <div class="authentication">
    <div class="kfzx-head">
      <span>认证中心</span>
      <i>完成认证，获得更多权限</i>
    </div>
    <div class="ind-wd-guid">
      <div class="ind-wd-guid-item" v-for="(item,index) in options" :key="index">
        <a href="javascript:void(0)" @click="active = item.value">
          <span :class="{'ind-wd-guid-se':active === item.value}">{{item.name}}</span>
        </a>
      </div>
    </div>
    <auditCert :active="active" />
  </div>
</template>
<script>
export default {
  data () {
    return {
      loading: false,
      active: this.$route.query.key || '1',
      options: [
        {
          name: '专家认证',
          value: '1'
        },
        {
          name: '机构认证',
          value: '2'
        },
        {
          name: '达人认证',
          value: '3'
        }
      ]
    }
  },
  components: {
    auditCert: () => import('./auditCert')
  }
}
</script>
<style lang="scss">
.authentication {
  .ed {
    line-height: 44px;
  }
  .r-info-sc li {
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    padding: 0 5px;
    overflow: hidden;
  }
  .area-select {
    height: 44px;
    width: 100% !important;
  }
  .area-select .area-selected-trigger {
    padding-top: 11px;
  }
  .tip {
    color: $red;
    line-height: 40px;
    font-size: 15px;
    padding-left: 15px;
    background-color: #f2f6ff;
    border: 1px solid #c5d4f7;
    i {
      padding-right: 8px;
    }
  }
  .item-location .layui-input-inline,
  .item-location .layui-form-select .layui-input,
  .item-location .layui-form-select {
    width: 130px;
  }

  .r-item-yyzz-img {
    margin-right: 10px!important;
  }
  .r-item-c i {
    margin-right: 5px;
  }
  .r-item-c input {
    width: 260px;
  }
  .layui-form-item .layui-inline {
    margin-right: 0;
  }
  .r-item-c .layui-form-label {
    width: 115px;
    padding-left: 0;
    padding-top: 13px;
  }
  .layui-input-block {
    margin: 20px 0 20px 130px;
  }
  .position-delete {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: absolute;
    top: 0px;
    right: 0;
    cursor: pointer;
    filter: contrast(0%);
  }
  .layui-layer-content {
    padding: 20px;
  }
  .layui-layer {
    min-width: 260px;
  }
  .layui-form-checkbox[lay-skin="primary"]:hover i {
    border-color: $primary;
  }
  .layui-form-checked[lay-skin="primary"] i {
    background-color: $primary;
    border-color: $primary;
  }
  .layui-layer {
    width: 550px !important;
  }
  .checked-item {
    max-width: 200px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
</style>
